/*
 * rtc.h
 *
 *  Created on: Aug 26, 2025
 *      Author: Young
 */

#ifndef INC_RTC_H_
#define INC_RTC_H_

#include "main.h"
#include "app.h"

#define TIME_ZONE			8

typedef struct {
	uint32_t timeStamp;
	uint16_t year;
	uint8_t month;
	uint8_t date;
	uint8_t week;
	uint8_t hour;
	uint8_t minute;
	uint8_t second;

} DateTime_TypeDef;

extern DateTime_TypeDef dateTime;

void rtcSetup(void);
void rtcLoop(void);

#endif /* INC_RTC_H_ */
